VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "LCompania"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Option Explicit
Dim dao As DAOCompania
'---------------------------------------------------------------------------------------
' Procedure : Class_Initialize
' DateTime  : 17/03/2008 23:48
' Author    : FRANCO
' Purpose   : Inicializa los objetos de la clase
'---------------------------------------------------------------------------------------
'
Private Sub Class_Initialize()
Set dao = New DAOCompania
End Sub


'---------------------------------------------------------------------------------------
' Procedure : getLista
' DateTime  : 20/04/2008 23:47
' Author    : FRANCO
' Purpose   : Obtiene una lista de objetos
'---------------------------------------------------------------------------------------
'
Public Function getLista() As Collection
Dim bean As New bCompania
bean.bEstado.nCodigo = UtilConstantes.ESTADO_COMPANIA_ACTIVA
Set dao.Connection = utilConexion
Set getLista = dao.getLista(bean)
hnderr:
If Err.Number = 0 Then Exit Function
utilMensaje.muestraMensaje errorEncontrado, Err.Description
End Function



